]> dgit.raspbian.org Git - gnome-shell.git/commit
searchController: Avoid event.set_source() API
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 25 Feb 2022 12:10:53 +0000 (13:10 +0100)
committerMarge Bot <marge-bot@gnome.org>
Fri, 4 Mar 2022 12:27:34 +0000 (12:27 +0000)
commit6d895bf8a9faff0b176f024de3df6b018d34fae7
tree5118a0c546f652a198e0ac2bb393bb4a8f2dd54a
parentdc0f286fe9660a845b0d299545cc74b30f87d0d7
searchController: Avoid event.set_source() API

It does not make sense that the target actor is both destinatary
and content of the events being sent, so this API call is going away.

Since the event can be sent entirely unmodified (more so, it will
become immutable/readonly in the future), avoid creating a copy
since it does not matter sending one or other struct.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2216>
js/ui/searchController.js